Type: concept
Confidence: 0.80
Created: 2026-04-25
Updated: 2026-04-25
Tags: gitworkflowcommands工具与框架

Git Push All

概述

一次性暂存、提交并推送所有变更到远程仓库的Git工作流程命令,包含安全检查以防止敏感信息泄露。

关键内容

  1. **工作流程概述
  2. 分析变更(git status, git diff --stat, git log -1)
  3. 安全检查(检测secrets、API密钥、大文件等)
  4. 用户确认后执行提交和推送

  5. **安全检查机制

  6. 检测敏感文件:.env, .key, *.pem, credentials.json等
  7. 检测API密钥:OPENAI_API_KEY, AWS_SECRET_KEY等实际值
  8. 防止大文件和构建产物被提交
  9. 验证.gitignore配置正确性

  10. **提交规范

  11. 使用Conventional Commits格式
  12. 支持多种类型:feat, fix, docs, style, refactor, test, chore, perf, build, ci
  13. 自动生成摘要和详细变更列表

来源

相关